package com.sinog.front.feign.biz;

import com.sinog.core.utilbean.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Map;

/**
 * @desc excel批量导入 - feign
 * @author lzq
 * @date 2020-12-04 9:51 上午
 */
@FeignClient("sinog2c-biz")
public interface ExcelImportService {

    /**
     * excel批量导入保存到临时表
     * @param data data
     * @return Result
     */
    @PostMapping("/transmission/api/azbj/savePreArrangedPersonnelExcelTemp")
    Result savePreArrangedPersonnelExcelTemp(@RequestBody String data);

    /**
     * 根据行政区划全名查询各级编码及名称
     * @param fullAreaName fullAreaName
     * @return Map
     */
    @PostMapping("/transmission/api/azbj/getAllArea")
    Map<String,Object> getAllArea(@RequestParam String fullAreaName);
}